package com.minarto.data {
	/**
	 * @author KIMMINHWAN
	 */
	public class GDataManager {
		static private var _instance:GDataManager = new GDataManager;
		static public function getInstance():GDataManager {
			return	_instance;
		}
		
		
		private var	_list:Object = {};
		
		
		
		public function GDataManager(){
			if (_instance) {
				throw new Error("don't create instance");
			}
		}
		
		
		public function addData($id:String, $data:*):void{
			_list[$id] = $data;
		}
		
		
		public function getData($id:String):*{
			return	_list[$id];
		}
		
		
		public function setData($id:String, $p:String, $value:*):void{
			_list[$id][$p] = $value;
		}
		
		
		public function delData($id:String):void{
			delete _list[$id];
		}
	}
}
